package com.cfpamf.ms.insur.wx.request;

import com.cfpamf.ms.insur.wx.model.WxPayModel;
import com.cfpamf.ms.insur.wx.response.WxPayResponse;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.http.client.ResponseHandler;

/**
 * 微信支付 参数结构
 *
 * @param <R> WxPayModel 请求参数
 * @param <T> WxPayResponse  返回结果
 */
public interface WechatPayDownloadRequest<R extends WxPayModel, T extends WxPayResponse>
        extends WechatPayRequest<R, T> {

    ResponseHandler<T> getResponseHandler(ObjectMapper mapper);

//    Consumer<T> callback();
}
